﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for PostingInfo
/// </summary>
public class PostingInfo
{
    private Int64 postingId;
    private string postingName;
    private DateTime postDate;
    private string description;
    private bool choosen;
    private double price;
    private string studentId;
    private int competitionId;
    private Int64 count;
    private string url;
    private string quotations;

    #region properties
    public Int64 PostingId
    {
        get { return postingId; }
        set { postingId = value; }
    }

    public string PostingName
    {
        get { return postingName; }
        set { postingName = value; }
    }

    public DateTime PostDate
    {
        get { return postDate; }
        set { postDate = value; }
    }

    public string Description
    {
        get { return description; }
        set { description = value; }
    }

    public bool Choosen
    {
        get { return choosen; }
        set { choosen = value; }
    }

    public double Price
    {
        get { return price; }
        set { price = value; }
    }

    public string StudentId
    {
        get { return studentId; }
        set { studentId = value; }
    }

    public int CompetitionId
    {
        get { return competitionId; }
        set { competitionId = value; }
    }

    public Int64 Count
    {
        get { return count; }
        set { count = value; }
    }

    public string Url
    {
        get { return url; }
        set { url = value; }
    }

    public string Quotations
    {
        get { return quotations; }
        set { quotations = value; }
    }
    #endregion

    public PostingInfo()
    {
    //    postingId = 0;
    //    postingName = "";
    //    postDate = new DateTime();
    //    description = "";
    //    choosen = false;
    //    price = 0;
    //    studentId = "";
    //    competitionId = 0;
    //    count = 0;
    //    url = "";
    //    quotations = "";
    }

    public PostingInfo(Int64 _postingId, string _postingName, DateTime _postDate, string _description, bool _choosen, double _price,
        string _studentId, int _competitionId, Int64 _count, string _url, string _quotations)
    {
        this.postingId = _postingId;
        this.postingName = _postingName;
        this.PostDate = _postDate;
        this.description = _description;
        this.choosen = _choosen;
        this.price = _price;
        this.studentId = _studentId;
        this.competitionId = _competitionId;
        this.count = _count;
        this.url = _url;
        this.quotations = _quotations;
    }
}